import { ElNotification } from 'element-plus'

export function notification(
  type: 'success' | 'warning' | 'info' | 'error',
  message: string,
  offset: number = 50
) {
  ElNotification({
    title: '提示信息',
    message,
    type,
    offset,
    duration: 1000
  })
}
